package com.grantz.function.bbs.core.inter;

import java.util.Optional;

import org.springframework.data.domain.Page;

import com.grantz.function.bbs.core.entity.Group;
import com.grantz.model.bbs.GroupModel;
import com.grantz.model.bbs.GroupSearch;
import com.grantz.models.base.element.page.ElementPage;

public interface GroupService {

	Group save(Group entity);

	Optional<Group> findOneById(String id);

	ElementPage<GroupModel> queryElementPage(GroupSearch query) throws Exception;

	Page<Group> queryPage(GroupSearch query) throws Exception;

	GroupModel  popOne(Group  group);

}
